package com.nd.our2project.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class LoginUser {
    @Length(min = 6)
    @NotNull
    private String email;
    @Length(min = 6,max = 10)
    @NotNull
    private String password;
}
